<?php

// 异步读取文件 
swoole_async_readfile(__DIR__.'/test.txt', function ($filename, $content) {  //异步读取文件
    //var_dump($filename, $content);
    echo "$filename $content";
});